package service.cities;

/**
 * Created with IntelliJ IDEA.
 * User: Claudio "Dna" Bonesana
 * Date: 19.04.13
 * Time: 21:41
 *
 * Abstract class uesd to define common attributes of every city.
 */
public abstract class City {

    protected String insertionName;
    protected String observationTime;
    protected String weatherDescr;
    protected String weatherImg;
    protected String temperature;
    protected String windStrength;
    protected String windDirection;
    protected String precipitation;
    protected String humidity;
    protected String pressure;
    protected String comment;


    protected City(String insertionName) {
        this.insertionName = insertionName;
    }

    public String getInsertionName() {
        return insertionName;
    }

    public void setInsertionName(String insertionName) {
        this.insertionName = insertionName;
    }

    public String getObservationTime() {
        return observationTime;
    }

    public void setObservationTime(String observationTime) {
        this.observationTime = observationTime;
    }

    public String getWeatherDescr() {
        return weatherDescr;
    }

    public void setWeatherDescr(String weatherDescr) {
        this.weatherDescr = weatherDescr;
    }

    public String getWeatherImg() {
        return weatherImg;
    }

    public void setWeatherImg(String weatherImg) {
        this.weatherImg = weatherImg;
    }

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    public String getWindStrength() {
        return windStrength;
    }

    public void setWindStrength(String windStrength) {
        this.windStrength = windStrength;
    }

    public String getWindDirection() {
        return windDirection;
    }

    public void setWindDirection(String windDirection) {
        this.windDirection = windDirection;
    }

    public String getPrecipitation() {
        return precipitation;
    }

    public void setPrecipitation(String precipitation) {
        this.precipitation = precipitation;
    }

    public String getHumidity() {
        return humidity;
    }

    public void setHumidity(String humidity) {
        this.humidity = humidity;
    }

    public String getPressure() {
        return pressure;
    }

    public void setPressure(String pressure) {
        this.pressure = pressure;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public abstract String getConnectionData();

    public abstract void setName(String name);

    public abstract String getName();

    @Override
    public String toString() {
        return "City{" +
                "insertionName='" + insertionName + '\'' +
                ", observationTime='" + observationTime + '\'' +
                ", weatherDescription='" + weatherDescr + '\'' +
                ", weatherImg='" + weatherImg + '\'' +
                ", temperature='" + temperature + '\'' +
                ", windStrength='" + windStrength + '\'' +
                ", windDirection='" + windDirection + '\'' +
                ", precipitation='" + precipitation + '\'' +
                ", humidity='" + humidity + '\'' +
                ", pressure='" + pressure + '\'' +
                '}';
    }
}
